package com.youdianda.mapper;


import com.youdianda.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysRoleMapper {
    /**
     * 根据id获取数据
     * @param roleId
     * @return
     */
    @Select("select * from sys_role where id=#{roleId}")
    SysRole getById(@Param("roleId") String roleId);
}
